package org.aplikator.client.local.command;

import com.google.gwt.activity.shared.AbstractActivity;


public abstract class AplikatorActivity extends AbstractActivity {

    private String token;
    private String prefix;
    public AplikatorActivity(String token){
        super();
        this.prefix = this.getClass().getName();
        this.token = token;
    }
    protected String getToken(){
        return token;
    }

    public Place getPlace(){
        return new Place();
    }


    public class Place extends com.google.gwt.place.shared.Place {

        public Place() {
        }

        public AbstractActivity getActivity() {
            return AplikatorActivity.this;
        }

        public String getToken() {
            return prefix+":"+token;
        }
    }

}
